import Route from 'react-router/lib/Route'
import Home from './components/Home'
import { WeaLocaleProvider } from 'ecCom';

import CustomList from './components/customReport/CustomList';
import CustomReport from './components/customReport/CustomReport';
import ShowReport from './components/customReport/ShowReport';

import './style/index';
import stores from './stores/index'

const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'fna');

const fnaRoute = (
  <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@w29dnu`} name="多维度预算" breadcrumbName="财务" path="fnaMulit" onEnter={getLocaleLabel} component={Home}> 
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@6gtiw2`} name="自定义报表列表" path="customList" component={CustomList}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@2u1swu`} name="自定义报表" path="customReport" component={CustomReport}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@sclth1`} name="展示自定义报表" path="showReport" component={ShowReport}/>
  </Route>
)

module.exports = {
  Route: fnaRoute,
  store: stores
}
